home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Installer SDK Cornucopia 1.0.2 / Script Examples / InstaCompOneExample / Makefile next >
Encoding:
Makefile  |  1996-09-30  |  3.3 KB  |  75 lines  |  [TEXT/MPS ]

  1. #
  2. #    makefile for "myInstaCompOne.r", an example for InstaCompOne file and font compression
  3. #
  4. #
  5. #        to build installer script :
  6. #            1) select "Build" from "Build" menu
  7. #            2) type script name "myInstaCompOne" ( note: ".r" is omitted )
  8. #            
  9. #        to build debug version of installer script :
  10. #            1) select "Build" from "Build" menu
  11. #            2) type script name "myInstaCompOne.debug" ( note: ".r" is omitted )
  12. #
  13. #
  14.  
  15. # • script names
  16.  
  17. # the installer script name
  18. scriptName                = myInstaCompOne
  19. # the debug version installer script name
  20. debugScriptName            = "{scriptName}.debug"
  21. # filename for ScriptCheck extension that will run when ScriptCheck does
  22. localScriptCheckExtName    = {scriptName}.scx
  23.  
  24. # • support directory names
  25.  
  26. # directory where ScriptCheck MPW tool can be found
  27. ScriptCheckDir            = :::Tools:Released:ScriptCheck 4.0.3:
  28. # directory where RIncludes can be found
  29. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  30. # directory where the Installer Debugger can be found
  31. InstallerDebuggerDir    = :::Tools:Released:Installer Debugger 4.0.3:
  32. # directory where the InstaCompOne stuff can be found
  33. InstaCompOneDir            = :::Tools:Released:InstaCompOne 1.1:
  34.  
  35. # • tool names
  36.  
  37. # InstaCompOne compression tool
  38. compressTool            = {InstaCompOneDir}InstaCompOneTool
  39.  
  40. # Original ScriptCheck Extension
  41. ScriptCheckExtension    = {InstaCompOneDir}InstaCompOneSCExt.rsrc
  42.  
  43. # Fond Encoder tool
  44. fondTool                = {InstaCompOneDir}FONDEncoderTool
  45.  
  46. "{debugScriptName}" ƒ {scriptName}
  47.     Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
  48.     Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
  49.  
  50. "{scriptName}" ƒƒ "{scriptName}.r" "{localScriptCheckExtName}" ":Tidbits:Installation Data"
  51.     set theTime    "'`date -d -s` 12:00:00 PM'"
  52.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  53.     SetFile -a b -d {theTime} "{scriptName}"
  54.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  55.     SetFile -m {theTime} "{scriptName}"
  56.  
  57. # be sure that's there's a copy of the InstaCompOne ScriptCheck extension in current folder
  58. "{localScriptCheckExtName}" ƒ "{ScriptCheckExtension}"
  59.     # copy and rename the original scriptcheck extension
  60.     Duplicate -y "{ScriptCheckExtension}" "{localScriptCheckExtName}"
  61.  
  62. ":Tidbits:Installation Data" ƒ ":Original Sources:Helvetica" ":Original Sources:Example File"
  63.     "{compressTool}" ":Original Sources:Example File" -o ":Tidbits:Installation Data"
  64.     "{compressTool}" ":Original Sources:Helvetica" -k sfnt=16033 -a part=200 -o ":Tidbits:Installation Data"
  65.     "{compressTool}" ":Original Sources:Helvetica" -k sfnt=5336 -a part=201 -o ":Tidbits:Installation Data"
  66.     "{compressTool}" ":Original Sources:Helvetica" -k NFNT=24110 -a part=202 -o ":Tidbits:Installation Data"
  67.     "{compressTool}" ":Original Sources:Helvetica" -k NFNT=22271 -a part=203 -o ":Tidbits:Installation Data"
  68.     "{compressTool}" ":Original Sources:Helvetica" -k NFNT=14739 -a part=204 -o ":Tidbits:Installation Data"
  69.     "{compressTool}" ":Original Sources:Helvetica" -k NFNT=15203 -a part=205 -o ":Tidbits:Installation Data"
  70.     "{compressTool}" ":Original Sources:Helvetica" -k NFNT=17245 -a part=206 -o ":Tidbits:Installation Data"
  71.     "{compressTool}" ":Original Sources:Helvetica" -k NFNT=17892 -a part=207 -o ":Tidbits:Installation Data"
  72. #    "{fondTool}" ":Original Sources:Helvetica" -o ":Tidbits:Installation Data"
  73.     echo "include ∂":Original Sources:Helvetica∂" 'FOND' AS 'iFND';" | Rez -append -o ":Tidbits:Installation Data"
  74.  
  75.